package ataques;

public class Ataque1 extends BaseAtaque {

	boolean[][] A,B;
	
	public Ataque1(int w, int h, boolean[][] A, boolean[][] B) {
		super(w, h);
		this.A = A;
		this.B = B;
		this.runAttack();
	}

	@Override
	public void runAttack() {
		//ATAQUE 1
		
		for (int i=0;i<iw;i++) 
		{
			for (int j=0;j<ih;j++)
			{
				if(this.A[2*i][2*j]==this.B[2*i][2*j])
				{
					this.desc[i][j]=7;		
				}
				else
				{
					this.desc[i][j]=0;		
				}
				
			}
		}

	}

}
